package com.kern.service;

import com.alibaba.fastjson.JSONObject;
import com.kern.entity.XProduct;
import org.apache.poi.ss.usermodel.Workbook;

import java.util.List;
import java.util.Map;

/**
 * Created by caoshi at 10:35 2021/7/30
 */
public interface IProductService {


    List<XProduct> listAll();

    List<JSONObject> listAllForJSONList();


    Workbook write(String filename, List<XProduct> data, Map<String, String> title);

    Workbook write2(String filename, List<JSONObject> data, Map<String, String> title);

    int save(List<XProduct> productList);



}
